package com.iqiyi.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class VideoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VideoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andVidIsNull() {
            addCriterion("vid is null");
            return (Criteria) this;
        }

        public Criteria andVidIsNotNull() {
            addCriterion("vid is not null");
            return (Criteria) this;
        }

        public Criteria andVidEqualTo(Integer value) {
            addCriterion("vid =", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotEqualTo(Integer value) {
            addCriterion("vid <>", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidGreaterThan(Integer value) {
            addCriterion("vid >", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidGreaterThanOrEqualTo(Integer value) {
            addCriterion("vid >=", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidLessThan(Integer value) {
            addCriterion("vid <", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidLessThanOrEqualTo(Integer value) {
            addCriterion("vid <=", value, "vid");
            return (Criteria) this;
        }

        public Criteria andVidIn(List<Integer> values) {
            addCriterion("vid in", values, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotIn(List<Integer> values) {
            addCriterion("vid not in", values, "vid");
            return (Criteria) this;
        }

        public Criteria andVidBetween(Integer value1, Integer value2) {
            addCriterion("vid between", value1, value2, "vid");
            return (Criteria) this;
        }

        public Criteria andVidNotBetween(Integer value1, Integer value2) {
            addCriterion("vid not between", value1, value2, "vid");
            return (Criteria) this;
        }

        public Criteria andVnameIsNull() {
            addCriterion("vname is null");
            return (Criteria) this;
        }

        public Criteria andVnameIsNotNull() {
            addCriterion("vname is not null");
            return (Criteria) this;
        }

        public Criteria andVnameEqualTo(String value) {
            addCriterion("vname =", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameNotEqualTo(String value) {
            addCriterion("vname <>", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameGreaterThan(String value) {
            addCriterion("vname >", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameGreaterThanOrEqualTo(String value) {
            addCriterion("vname >=", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameLessThan(String value) {
            addCriterion("vname <", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameLessThanOrEqualTo(String value) {
            addCriterion("vname <=", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameLike(String value) {
            addCriterion("vname like", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameNotLike(String value) {
            addCriterion("vname not like", value, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameIn(List<String> values) {
            addCriterion("vname in", values, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameNotIn(List<String> values) {
            addCriterion("vname not in", values, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameBetween(String value1, String value2) {
            addCriterion("vname between", value1, value2, "vname");
            return (Criteria) this;
        }

        public Criteria andVnameNotBetween(String value1, String value2) {
            addCriterion("vname not between", value1, value2, "vname");
            return (Criteria) this;
        }

        public Criteria andVnumberIsNull() {
            addCriterion("vnumber is null");
            return (Criteria) this;
        }

        public Criteria andVnumberIsNotNull() {
            addCriterion("vnumber is not null");
            return (Criteria) this;
        }

        public Criteria andVnumberEqualTo(Integer value) {
            addCriterion("vnumber =", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberNotEqualTo(Integer value) {
            addCriterion("vnumber <>", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberGreaterThan(Integer value) {
            addCriterion("vnumber >", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("vnumber >=", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberLessThan(Integer value) {
            addCriterion("vnumber <", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberLessThanOrEqualTo(Integer value) {
            addCriterion("vnumber <=", value, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberIn(List<Integer> values) {
            addCriterion("vnumber in", values, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberNotIn(List<Integer> values) {
            addCriterion("vnumber not in", values, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberBetween(Integer value1, Integer value2) {
            addCriterion("vnumber between", value1, value2, "vnumber");
            return (Criteria) this;
        }

        public Criteria andVnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("vnumber not between", value1, value2, "vnumber");
            return (Criteria) this;
        }

        public Criteria andIntroIsNull() {
            addCriterion("intro is null");
            return (Criteria) this;
        }

        public Criteria andIntroIsNotNull() {
            addCriterion("intro is not null");
            return (Criteria) this;
        }

        public Criteria andIntroEqualTo(String value) {
            addCriterion("intro =", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotEqualTo(String value) {
            addCriterion("intro <>", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThan(String value) {
            addCriterion("intro >", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThanOrEqualTo(String value) {
            addCriterion("intro >=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThan(String value) {
            addCriterion("intro <", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThanOrEqualTo(String value) {
            addCriterion("intro <=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLike(String value) {
            addCriterion("intro like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotLike(String value) {
            addCriterion("intro not like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroIn(List<String> values) {
            addCriterion("intro in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotIn(List<String> values) {
            addCriterion("intro not in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroBetween(String value1, String value2) {
            addCriterion("intro between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotBetween(String value1, String value2) {
            addCriterion("intro not between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andVdateIsNull() {
            addCriterion("vdate is null");
            return (Criteria) this;
        }

        public Criteria andVdateIsNotNull() {
            addCriterion("vdate is not null");
            return (Criteria) this;
        }

        public Criteria andVdateEqualTo(Date value) {
            addCriterionForJDBCDate("vdate =", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("vdate <>", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateGreaterThan(Date value) {
            addCriterionForJDBCDate("vdate >", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("vdate >=", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateLessThan(Date value) {
            addCriterionForJDBCDate("vdate <", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("vdate <=", value, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateIn(List<Date> values) {
            addCriterionForJDBCDate("vdate in", values, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("vdate not in", values, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("vdate between", value1, value2, "vdate");
            return (Criteria) this;
        }

        public Criteria andVdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("vdate not between", value1, value2, "vdate");
            return (Criteria) this;
        }

        public Criteria andVareaIsNull() {
            addCriterion("varea is null");
            return (Criteria) this;
        }

        public Criteria andVareaIsNotNull() {
            addCriterion("varea is not null");
            return (Criteria) this;
        }

        public Criteria andVareaEqualTo(String value) {
            addCriterion("varea =", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaNotEqualTo(String value) {
            addCriterion("varea <>", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaGreaterThan(String value) {
            addCriterion("varea >", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaGreaterThanOrEqualTo(String value) {
            addCriterion("varea >=", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaLessThan(String value) {
            addCriterion("varea <", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaLessThanOrEqualTo(String value) {
            addCriterion("varea <=", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaLike(String value) {
            addCriterion("varea like", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaNotLike(String value) {
            addCriterion("varea not like", value, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaIn(List<String> values) {
            addCriterion("varea in", values, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaNotIn(List<String> values) {
            addCriterion("varea not in", values, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaBetween(String value1, String value2) {
            addCriterion("varea between", value1, value2, "varea");
            return (Criteria) this;
        }

        public Criteria andVareaNotBetween(String value1, String value2) {
            addCriterion("varea not between", value1, value2, "varea");
            return (Criteria) this;
        }

        public Criteria andVpicIsNull() {
            addCriterion("vpic is null");
            return (Criteria) this;
        }

        public Criteria andVpicIsNotNull() {
            addCriterion("vpic is not null");
            return (Criteria) this;
        }

        public Criteria andVpicEqualTo(String value) {
            addCriterion("vpic =", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicNotEqualTo(String value) {
            addCriterion("vpic <>", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicGreaterThan(String value) {
            addCriterion("vpic >", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicGreaterThanOrEqualTo(String value) {
            addCriterion("vpic >=", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicLessThan(String value) {
            addCriterion("vpic <", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicLessThanOrEqualTo(String value) {
            addCriterion("vpic <=", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicLike(String value) {
            addCriterion("vpic like", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicNotLike(String value) {
            addCriterion("vpic not like", value, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicIn(List<String> values) {
            addCriterion("vpic in", values, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicNotIn(List<String> values) {
            addCriterion("vpic not in", values, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicBetween(String value1, String value2) {
            addCriterion("vpic between", value1, value2, "vpic");
            return (Criteria) this;
        }

        public Criteria andVpicNotBetween(String value1, String value2) {
            addCriterion("vpic not between", value1, value2, "vpic");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}